import random
# 0,拳头；1，剪刀；2，布
play = input('请出拳：')
# 随机数，包含边界
computer = random.randint(0,2)
print(f'comput:{computer}')
index = 0
if int(play) == computer:
    print('平局')
elif (int(play) == 0 and computer==1) or (int(play) == 1 and computer==2) or (int(play) == 3 and computer==0):
    print('玩家获胜')
else:
    print('电脑获胜')

